try:
    num = int(input('请输入数字：'))
    print(1/num)
except ZeroDivisionError as e:
    print('除数不能为0')
    print(e)
except ValueError as e:
    print('请输入数字')
    print(e)
except Exception as e:
    print('未知错误')
    print(e)
else:
    print('没有异常')
    pass
finally:
    print('无论是否异常都会执行')